# -*- coding: utf-8 -*-
# @Time    : 2022/5/24 20:12
# @Author  : yangqing
# @Email   : 1292504517@qq.com
# @File    : commodity_details_page.py
# @Software: PyCharm

from selenium.webdriver.common.by import By
from time import sleep
from page.base_page import BasePage

'''商品详情页page'''
class ShoppingCart(BasePage):
        # 找到商品详情页，立即购买按钮(1page)
    ele_goods_btn_locator = (By.CSS_SELECTOR,'#ECS_FORMBUY > ul.bnt_ul > li.padd > a > img')

    def goods_buy_btn(self):
        # 找到商品详情页，立即购买按钮(1page)，点击
        self.driver.find_element(*self.ele_goods_btn_locator).click()

